import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/drawactuser',
  component: Layout,
  redirect: '/drawactuser/index',
  name: 'drawactuser',
  meta: {
    title: '抽奖活动用户',
    icon: 'ph:user-list',
  },
  children: [
    {
      path: 'index',
      name: 'drawactuserIndex',
      component: () => import('@/views/drawactuser/index.vue'),
      meta: {
        title: '抽奖活动用户',
        menu: false,
        breadcrumb: false,
        activeMenu: '/drawactuser',
      },
    },
    {
      path: 'detail',
      name: 'drawactuserDetail',
      component: () => import('@/views/drawactuser/detail.vue'),
      meta: {
        title: '抽奖活动用户详情',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/drawactuser',
      },
    },
  ],
}

export default routes
